<template>
  <div class="group-table-box">
    <el-row class="group-top">
      <el-col :span="24" class="group-top">
        <div class="input-item input-flex">
          <span>用户手机号：</span>
          <el-input
            v-model="form.groupName"
            placeholder="用户手机号"
            style="width: 100px;"
            size="small"
          ></el-input>
        </div>

        <div class="input-item input-flex">
          <span>用户名称：</span>
          <el-input
            v-model="form.createName"
            placeholder="用户名称"
            style="width: 100px;"
            size="small"
          ></el-input>
        </div>

        <div class="input-item input-flex">
          <span>申诉时间：</span>
          <el-date-picker
            v-model="form.date"
            type="daterange"
            range-separator="至"
            start-placeholder="开始日期"
            end-placeholder="结束日期"
            @change="onClickDatePickerChange"
            size="small"
          >
          </el-date-picker>
        </div>

        <div class="input-item input-flex">
          <span>状态：</span>
          <el-input
            v-model="form.createName"
            placeholder="状态"
            style="width: 100px;"
            size="small"
          ></el-input>
        </div>

        <div class="input-item">
          <el-button
            type="primary"
            size="small"
            @click="onClickSearch"
          >搜索</el-button>
          <el-button
            type="warning"
            size="small"
            @click="onClickReset"
          >重置搜索</el-button>
        </div>
      </el-col>
    </el-row>
    <div class="table-container">
      <el-table
        :data="tableData"
        border
        :header-cell-class-name="'table-header'"
      >
        <el-table-column
          type="index"
          label="用户账号"
          align="center"
          width="80">
        </el-table-column>
        <el-table-column
          prop="name"
          label="用户名称"
          align="center">
        </el-table-column>
        <el-table-column
          prop="address"
          align="center"
          label="申诉订单号">
        </el-table-column>
        <el-table-column
          prop="address"
          align="center"
          label="申诉内容">
        </el-table-column>
        <el-table-column
          prop="address"
          align="center"
          label="申诉时间">
        </el-table-column>
        <el-table-column
          prop="address"
          align="center"
          label="状态">
        </el-table-column>
        <el-table-column
          align="center"
          label="操作"
          width="200px"
        >
          <template slot-scope="scope">
            <el-button
              size="mini"
              type="success"
              @click="check(scope.$index, scope.row)"
            >标记解决</el-button>
            <el-button
              size="mini"
              type="primary"
              @click="check(scope.$index, scope.row)"
            >查看图片</el-button>
          </template>
        </el-table-column>
      </el-table>
      <el-pagination
        :current-page.sync="form.pageIndex"
        :page-size="100"
        layout="total, prev, pager, next"
        :total="totalPageCount"
        style="text-align: center;margin-top: 20px;"
      >
      </el-pagination>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      isLoading: false,
      form: {
        pageIndex: 1,
      },
      totalPageCount: 10,
      tableData: [{
        groupStatusText: '123123'
      }],
      checkReturnData: {
      }
    }
  },
  mounted() {
    this.getTableData();
  },
  watch: {
  },
  methods: {
    onClickSearch() {

    },
    onClickReset() {

    },
    onClickDeleteConfirm() {

    },
    check(index) {

    },
    success(index) {

    },
    remove(index) {

    },
    getTableData(index) {

    },
    onClickDatePickerChange(e) {
      // ["2018-08-07", "2018-09-12"]
      // this.form.date = e;
    },
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.input-flex {
  display: inline-flex !important;
  flex-direction: column;
}
.pull-right {
  float: right;
}
.group-top {
  display: flex;
  align-items: flex-end;
}
.group-right {
  display: flex;
  justify-content: flex-end;
}
.input-item {
  display: inline-block;
  margin: 0 20px 20px 0;
  color: #000;
  font-size: 12px;
}
.input-btn {
  margin-right: 10px;
}
.table-container-page {
  text-align: center;
  margin-top: 20px;
  color: #000;
}
</style>
